<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>CSS 选择器</title>
  <style>
    [data-style] {
      color: red;
    }
  </style>
</head>
<body>
  <h1 data-style>Hello, World!</h1>
</body>
</html>